package com.ruoyi.system.wnjk.mapper;

import com.ruoyi.system.wnjk.domain.po.ShopSubject;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 * 分类 Mapper 接口
 * </p>
 *
 * @author chan
 * @since 2025-03-05
 */
public interface ShopSubjectMapper {
    /**
     * 查询分类
     *
     * @param id 分类主键
     * @return 分类
     */
    public ShopSubject selectShopSubjectById(Long id);

    /**
     * 查询分类列表
     *
     * @param shopSubject 分类
     * @return 分类集合
     */
    public List<ShopSubject> selectShopSubjectList(ShopSubject shopSubject);

    /**
     * 新增分类
     *
     * @param shopSubject 分类
     * @return 结果
     */
    public int insertShopSubject(ShopSubject shopSubject);

    /**
     * 修改分类
     *
     * @param shopSubject 分类
     * @return 结果
     */
    public int updateShopSubject(ShopSubject shopSubject);

    /**
     * 删除分类
     *
     * @param id 分类主键
     * @return 结果
     */
    public int deleteShopSubjectById(Long id);

    /**
     * 批量删除分类
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteShopSubjectByIds(Long[] ids);
}
